<?php
/**
 * request
 */
class Gospel_Http_Request extends Gospel_Http_Request_Abstract{
	/**
	 * 初始化
	 *
	 * @return void
	 * @see Gospel/Http/Request/Gospel_Http_Request_Abstract::init()
	 */
	protected function init(){
		$data = array();
		//post,get data
		foreach ($_REQUEST as $key=>$val){
			$data[$key] = $val;
		}
		$data['REQUEST_METHOD'] = strtoupper($_SERVER['REQUEST_METHOD']);
		$data['REMOTE_ADDR'] = strtoupper($_SERVER['REMOTE_ADDR']);
		$data['SERVER_NAME'] = strtolower($_SERVER['SERVER_NAME']);
		//server data
		$this->_data = $data;
	}
}
//end